home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_200 / 272_01 / screen.h < prev    next >
Text File  |  1986-12-30  |  1KB  |  48 lines

  1. /*
  2. **          SM.LIB  function source code
  3. **  Copyright 1986, S.E. Margison
  4. **
  5. **  FUNCTION: screen.h
  6. ** extra defines for screen handling operations
  7. */
  8.  
  9. #define BW40 0   /* b&w 40 x 25 screen */
  10. #define CLR40 1  /* color 40 x 25 screen */
  11. #define BW80 2   /* b&w 80 x 25 screen */
  12. #define CLR80 3  /* color 80 x 25 screen */
  13. #define CG320 4  /* color graphics, 320 x 200 */
  14. #define BW320 5  /* b&w graphics, 320 x 200 */
  15. #define BW640 6  /* b&w graphics, 640 x 200 */
  16. #define MONO 7   /* 80 x 25 b&w using Monochrome card */
  17.  
  18. /* video attributes */
  19. #define BLINKING 0x87
  20. #define REVERSE 0x70
  21. #define REVBLINK 0xf0
  22. #define NORMAL 0x07
  23. #define HIGHLITE 0x0f
  24. #define HIGHBLINK 0x8f
  25. #define BLINKBIT 0x80   /* OR in to cause blink */
  26. #define HILTBIT 0x08    /* OR in to cause highlight */
  27.  
  28. /* colors -- Use as is for foreground colors
  29. **           For background, shift left by 4 and OR with
  30. **           foreground and possible video attributes
  31. */
  32. #define BLACK 0
  33. #define BLUE 1
  34. #define GREEN 2
  35. #define CYAN 3
  36. #define RED 4
  37. #define MAGENTA 5
  38. #define BROWN 6
  39. #define WHITE 7
  40. #define GRAY 8
  41. #define LTBLUE 9
  42. #define LTGREEN 10
  43. #define LTCYAN 11
  44. #define LTRED 12
  45. #define LTMAGENTA 13
  46. #define YELLOW 14
  47. #define HIWHITE 15    /* hi-intensity white */
  48.